const http = require('../utils/request/')

module.exports = {
  // 登录
  LoginApi(data) {
    return http.post('/Master/login', data)
  },
  // 发送验证码
  SendSmsApi(data) {
    return http.post('/AliSendSms/SendSms', data)
  },
  // 获取用户信息
  MasterInfoApi() {
    return http.post('/Master/master_info')
  },
  // 获取系统配置
  SystemApi() {
    return http.post('/Index/system')
  },
  // 获取我的订单列表
  OrderListApi(data) {
    return http.post('/Master/order_list', data)
  },
  // 师傅确认接单
  ConfirmOrdersApi(data) {
    return http.post('/Master/confirm_orders', data)
  },
  // 确认完成订单
  CompleteOrdersApi(data) {
    return http.post('/Master/complete_orders', data)
  },
  // 获取任务详情
  TaskDetailApi(data) {
    return http.post('/Master/task_detail', data)
  },
  // 获取师傅、城市管理员任务大厅
  TaskListApi(data) {
    return http.post('/Master/task_list', data)
  },
  // 师傅抢单
  GrabOrdersApi(data) {
    return http.post('/master/grab_orders', data)
  },
  // 获取派单师傅列表
  MasterListApi(data) {
    return http.post('/Master/master_list', data)
  },
  // 分配订单给师傅
  AssignOrdersApi(data) {
    return http.post('/Master/assign_orders', data)
  },
  // 获取师傅注册时技能
  SkillListApi(data) {
    return http.post('/Master/skill_list', data)
  },
  // 申请成为师傅
  ApplyApi(data) {
    return http.post('/Master/apply', data)
  },
  // 订单统计
  OrderStatisticsApi(data) {
    return http.post('/Master/order_statistics', data)
  },
  
  // 上传签名图片
  SignImageApi(data) {
    return http.post('/Master/sign_image', data)
  }
}